package booking.gui;


	import java.awt.Container;
	import java.awt.FlowLayout;
	import java.awt.event.ActionEvent;
	import java.awt.event.ActionListener;
	import javax.swing.JApplet;
	import javax.swing.JComboBox;

	public class Rulllista extends JApplet {
	private String[] description = { "Arlanda", "Landvettter", "Frankfurt",
	   "New york", "Charles de gaulle" };

	private JComboBox<String> c = new JComboBox<String>();

	private int count = 0;

	public void init() {
	 for (int i = 0; i < 8; i++)
	   c.addItem(description[count++]);

	 c.addActionListener(new ActionListener() {
	   public void actionPerformed(ActionEvent e) {
	     if (count < description.length)
	       c.addItem(description[count++]);
	   }
	 });

	 Container cp = getContentPane();
	 cp.setLayout(new FlowLayout());
	 cp.add(c); 
		}
	} 
